< previous page page_712 next page >

Page 712
Creating an IIS Application
To start an IIS application, open Visual Basic and choose IIS Application from the list of available project types. A new project is created with a single object, WebClass1, shown in Figure 31.7.
0712-01.jpg
Figure 31.7
As IIS application is a specialized type of
ActiveX DLL that runs on the Web server.
Notice that WebClass1 is not a form or standard class module, but an ActiveX Designer. ActiveX Designers help you create specific kinds of ActiveX components and are integrated right into the VB development environment. In an IIS application, the WebClass designer takes care of a lot of "low level" work for you in working with HTML. In fact, when you finally compile your IIS Application DLL, much of the VB code you write will be talking to the WebClass DLL.
Because the Web is inherently document-based, an IIS application depends on files being in their proper locations. Therefore, it is very important to save the IIS project before you start doing anything. Go ahead and create a separate directory for the application, such as C:\IISDemo, and save the project files.
As with forms, WebClass1 has both a code view and a design view. Open the design view by right-clicking the WebClass and selecting View Object. You then see the screen shown in Figure 31.8.
0712-02.jpg
Figure 31.8
A WebClass can contain two types of WebItems.
As you can see, a WebClass contains WebItems. There are two different types of WebItems, which you'll learn about shortly:

 
< previous page page_712 next page >